package com.torch.demo03;

public interface AddRequire {
    default void addRequireBeforeOriginalMethod(Object... objects){
        System.out.println("在原方法前添加新需求");
    }
    default void addRequireAfterOriginalMethod(Object... objects){
        System.out.println("在原方法后添加新需求");
    }
    default void addRequireBeforeOriginalMethod(){
        System.out.println("在原方法前添加新需求");
    }
    default void addRequireAfterOriginalMethod(){
        System.out.println("在原方法后添加新需求");
    }
}

